import time

import jinja2
import requests

from Base.BaseSetting import url_path

class Requst():
    @classmethod
    def get_session(cls):
        cls.session=requests.session()
        url = url_path+ "/WoniuBoss4.0/login/userLogin"
        body = "userName=WNCD000&userPass=woniu123&checkcode=0000&remember=Y"
        headers = {'Content-Type': "application/x-www-form-urlencoded;charset=UTF-8"}
        cls.session.post(url=url, data=body, headers=headers)
        return cls.session